import request from './index'

export const doList = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine',
    type: 'GET',
    page: page,
    noLogin: true
  })
}

export const doAddPhoneLog = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/Mobile',
    type: 'GET',
    page: page,
    noLogin: true
  })
}

export const doAddShareLog = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/Share',
    type: 'GET',
    page: page,
    noLogin: true
  })
}

export const doCompanyList = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/customer',
    type: 'GET',
    page: page,
    noLogin: true
  })
}

export const doDetail = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/detail',
    type: 'GET',
    page: page,
    noLogin: true
  })
}

export const doMobile = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/mobile',
    type: 'GET',
    page: page,
    noLogin: true
  })
}

export const doShare = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/share',
    type: 'GET',
    page: page,
    noLogin: true
  })
}